import java.util.Arrays;

public class ww {
    public static void main(String[] args) {
//        method();
//        method1();
//        method2();
//        method3();
//        method4();
//        method5();
        method6();
        method7();

    }

    public static void method7() {

    }

    private static void method6() {
        int a[][]=new int[3][4];
        for (int i = 0; i < a.length; i++) {
            for (int j = 0; j < a[i].length; j++) {
                System.out.println(a[i][j]);
            }
            System.out.println();
        }
    }

    private static void method5() {
        int myarr[][]={{12,0},{45,10}};
        myarr[1][1]=20;
        int[][] myarr1=new int[3][4];
        System.out.println(myarr[1][0]);
        System.out.println(myarr.length);
        System.out.println(myarr1.length);
        System.out.println(myarr1[2].length);
    }
 

    public static void method4() {
         int[][] c = new int[2][];
        c[0]=new int[]{1,2,3,4,5,6};
        c[1]=new int[5];
        System.out.println(c[0].length);
        System.out.println(c[1].length);

    }

    public static void method3() {
        int b[][];
        b=new int[][]{{1,2,3,4},{2,3,4},{1,2,3,4,5}};
        System.out.println(b[0].length);
        System.out.println(b[1].length);
        System.out.println(b[2].length);

    }

    public static void method2() {
        int a[][];
        //new int[2][4] 这个2指的是length  也就是个数 创造了2个数组 长度都是4的
        a= new int[2][4];
        System.out.println(a[0].length);
        System.out.println(a[1].length);
    }

    public static void method1() {
        int[]a=new int[]{10,20,30,40};
        Arrays.fill(a,1,2,25);
        for (int i = 0; i <a.length; i++) {
            System.out.println(a[i]);
        }
    }

    public static void method() {
        int[]a=new int[5];
        Arrays.fill(a,8);
        for (int b:a
        ) {

            System.out.println(b);
        }
    }
}
